<?php
use Phalcon\Di;

Di::getDefault()->getShared('eventsManager')->attach('entity', new \Modules\Queue\Library\EntityListener());